package yxy.game.pm2.active.module.paylevelpackage;

import yxy.apple.util.PubSub.MethodSubscriber;
import yxy.apple.util.PubSub.SubscriptionMethod;
import yxy.game.pm2.bean.PlayerBean;
import yxy.game.pm2.bean.pubsub.PlayerBeanPublisher;
import yxy.game.pm2.bean.pubsub.PlayerBeanPublisher.PlayerBeanSubscription;

public class ActiveSubscriber_支付等级礼包 extends MethodSubscriber {

	static private ActiveSubscriber_支付等级礼包 instance;

	public static ActiveSubscriber_支付等级礼包 getInstance() {
		if (instance == null) {
			instance = new ActiveSubscriber_支付等级礼包();
			instance.init();
		}
		return instance;
	}

	private void init() {
		PlayerBeanPublisher.getInstance().subscribe(this);
	}
	
	private ActiveSubscriber_支付等级礼包() {
	}

	@SubscriptionMethod(Type = PlayerBeanSubscription.class)
	public void receive(PlayerBeanSubscription subscription) {
		PlayerBean playerBean = subscription.getPlayerBean();
		String playerCode = playerBean.getCode();
		ActiveModule_支付等级礼包.get(playerCode,false);
	}
	
}
